﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("OffShelves", "OffShelves", new string[] { "OFFSHELVESID" })]
    [KnownType(typeof(OffShelves))]
    public class OffShelves : MB.Orm.Common.BaseModel
    {
        public OffShelves()
        {
        }
        private int _OFFSHELVESID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("OFFSHELVESID", System.Data.DbType.Int32)]
        public int OFFSHELVESID
        {
            get { return _OFFSHELVESID; }
            set { _OFFSHELVESID = value; }
        }

        private DateTime _OFFSHELVESDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("OFFSHELVESDATE", System.Data.DbType.DateTime)]
        public DateTime OFFSHELVESDATE
        {
            get { return _OFFSHELVESDATE; }
            set { _OFFSHELVESDATE = value; }
        }

        private string _BATCHNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("BATCHNO", System.Data.DbType.String)]
        public string BATCHNO
        {
            get { return _BATCHNO; }
            set { _BATCHNO = value; }
        }
        
        private int _GOODSID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSID", System.Data.DbType.Int32)]
        public int GOODSID
        {
            get { return _GOODSID; }
            set { _GOODSID = value; }
        }

        private string _GOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSCODE", System.Data.DbType.String)]
        public string GOODSCODE
        {
            get { return _GOODSCODE; }
            set { _GOODSCODE = value; }
        }

        private string _GOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSNAME", System.Data.DbType.String)]
        public string GOODSNAME
        {
            get { return _GOODSNAME; }
            set { _GOODSNAME = value; }
        }

        private string _FLAG;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("FLAG", System.Data.DbType.String)]
        public string FLAG
        {
            get { return _FLAG; }
            set { _FLAG = value; }
        }

        private decimal _QTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("QTY", System.Data.DbType.Decimal)]
        public decimal QTY
        {
            get { return _QTY; }
            set { _QTY = value; }
        }

        private decimal _QTYEXCE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("QTYEXCE", System.Data.DbType.Decimal)]
        public decimal QTYEXCE
        {
            get { return _QTYEXCE; }
            set { _QTYEXCE = value; }
        }

        private string _CREATER;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATER", System.Data.DbType.String)]
        public string CREATER
        {
            get { return _CREATER; }
            set { _CREATER = value; }
        }

        private DateTime _CREATEDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATEDATE", System.Data.DbType.DateTime)]
        public DateTime CREATEDATE
        {
            get { return _CREATEDATE; }
            set { _CREATEDATE = value; }
        }

        private string _EDITOR;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("EDITOR", System.Data.DbType.String)]
        public string EDITOR
        {
            get { return _EDITOR; }
            set { _EDITOR = value; }
        }

        private DateTime _EDITDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("EDITDATE", System.Data.DbType.DateTime)]
        public DateTime EDITDATE
        {
            get { return _EDITDATE; }
            set { _EDITDATE = value; }
        }

        private string _REMARK;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("REMARK", System.Data.DbType.String)]
        public string REMARK
        {
            get { return _REMARK; }
            set { _REMARK = value; }
        }

        private int _LOCATIONID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOCATIONID", System.Data.DbType.Int32)]
        public int LOCATIONID
        {
            get { return _LOCATIONID; }
            set { _LOCATIONID = value; }
        }

        private string _LOCATIONCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOCATIONCODE", System.Data.DbType.String)]
        public string LOCATIONCODE
        {
            get { return _LOCATIONCODE; }
            set { _LOCATIONCODE = value; }
        }

        private string _CELLNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CELLNO", System.Data.DbType.String)]
        public string CELLNO
        {
            get { return _CELLNO; }
            set { _CELLNO = value; }
        }
    }
}